package tienmanh.gs.goldminer.sprite.load;

import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.entity.text.Text;
import org.andengine.opengl.texture.region.ITiledTextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import tienmanh.gs.goldminer.manager.ResourcesManager;

public class LoadBag extends AnimatedSprite{

	Text text;
	
	public LoadBag(float pX, float pY, ITiledTextureRegion pTiledTextureRegion,
			VertexBufferObjectManager pVertexBufferObjectManager , String text1) {
		super(pX, pY,350,200, pTiledTextureRegion, pVertexBufferObjectManager);
		// TODO Auto-generated constructor stub
		text = new Text(getWidth()/4, getHeight() - 60, ResourcesManager.getInstance().font1, text1, pVertexBufferObjectManager);
		attachChild(text);
		setCurrentTileIndex(1);
	}

}
